<!DOCTYPE html>
<html lang="en" xmlns:th=http://www.thymeleaf.org>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body ,html{
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
    <div style="margin-top:200px; margin-left: 40%;">
        <ul>
            <li><a href="/userInfo" th:if="${session.userInfo!=null}"><span  th:text="${session.userInfo.username}"></span></a>
            </li>
            <li><a href="/login">用户登陆</a></li>
            <li><a href="/reg">用户注册</a></li>
            <li><a href="/druid">druid管理</a></li>
            <li><a href="/swagger-ui.html">API文档</a></li>
            <li><a href="/management">Actuator</a></li>
            <li><a href="/logout">退出登录</a></li>
        </ul>
    </div>

    <!--<a th:value="${username}"></a>
    <span th:text="${username.username}"></span>
    <span th:text="${session.username}"></span>
     &lt;!&ndash; ${ session.username} thymeleaf 不能使用el表达式&ndash;&gt;-->

</body>
</html>